#ifndef REGISTERWIDGET_H
#define REGISTERWIDGET_H

#include <QWidget>
#include <QNetworkAccessManager>
#include "QNetworkRequest"
#include "QNetworkReply"

namespace Ui {
class registerWidget;
}

class registerWidget : public QWidget
{
    Q_OBJECT

public:
    explicit registerWidget(QWidget *parent = nullptr);
    ~registerWidget();
    void basicSettings(); //基础设置
    void connectSettings(); //连接设置
    void emptyWidget(); //清空页面



protected:
    void mousePressEvent(QMouseEvent *event) override;
    void mouseMoveEvent(QMouseEvent *event) override;
    void mouseReleaseEvent(QMouseEvent *event) override;

private:
    Ui::registerWidget *ui;

    QPoint address; //鼠标位置

public slots:
    void btnRegister_clicked();
    void btnCancel_clicked();

    void dealMsg(QNetworkReply *reply);
};

#endif // REGISTERWIDGET_H
